<script setup lang="ts">
import ContractReview from '@/views/agent/chat/components/ContractReview.vue'
import ResumeEvaluation from '@/views/agent/chat/components/ResumeEvaluation.vue'
import IndustryResearch from '@/views/agent/chat/components/IndustryResearch.vue'
import StyleOfSpeech from '@/views/agent/chat/components/StyleOfSpeech.vue'
import TenderReview from '@/views/agent/chat/components/TenderReview.vue'
import { nextTick, ref } from 'vue'

const props = withDefaults(
  defineProps<{
    appId?: string
    chatId?: string
    type: any
    applicationDetails: any
  }>(),
  {
  }
)

</script>

<template>
  <!--  10 合同审查、20 简历匹配评估、30 行业研究报告、40 风格发言稿、50 标书审查-->
  <!-- 合同审查 -->
  <ContractReview v-if="+props.applicationDetails.renderingType === 10" :app-id="props.appId" :chat-id="props.chatId" :applicationDetails="applicationDetails" />
  <!-- 简历匹配评估 -->
  <ResumeEvaluation v-else-if="+props.applicationDetails.renderingType === 20" :app-id="props.appId" :chat-id="props.chatId" :applicationDetails="applicationDetails" />
  <!-- 行业研究报告 -->
  <IndustryResearch v-else-if="+props.applicationDetails.renderingType === 30" :app-id="props.appId" :chat-id="props.chatId" :applicationDetails="applicationDetails" />
  <!-- 风格发言稿 -->
  <StyleOfSpeech v-else-if="+props.applicationDetails.renderingType === 40" :app-id="props.appId" :chat-id="props.chatId" :applicationDetails="applicationDetails" />
  <!-- 标书审查 -->
  <TenderReview v-else-if="+props.applicationDetails.renderingType === 50" :app-id="props.appId" :chat-id="props.chatId" :applicationDetails="applicationDetails" />

</template>

<style lang="scss">
.mt-12 {
  margin-top: 12px;
}
.mb-12 {
  margin-top: 12px;
}
.ai-start {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  &-tips {
    width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
    color: #3067EF;
    line-height: 21px;
    .el-icon {
      cursor: pointer;
    }
    &-ellipsis {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}
</style>
